package com.engine.modules.ytht.service;

import com.engine.modules.ytht.entity.ContractEntity;
import com.engine.modules.ytht.entity.FarmersFieldsEntity;
import com.engine.modules.ytht.entity.PlotInfoEntity;
import com.engine.modules.ytht.mapper.ContractMapper;
import com.engine.modules.ytht.mapper.FarmersBindingMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;

/**
 * @author HX
 * @version 1.0.0
 * @ClassName ContractServiceImpl.java
 * @Description TODO
 * @createTime 2022年2月16日
 */
@Slf4j
@Service
public class ContractServiceImpl implements  ContractService{

    @Autowired
    ContractMapper contractMapper;

    @Override
    public List<ContractEntity> getContractByFieldBlockId(String fbId) throws InvocationTargetException, IllegalAccessException, NoSuchMethodException {
        return contractMapper.getContractByFieldBlockId(fbId);
    }
}
